<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/web/header.jsp" %>
<title>添加商品信息</title>
</head>
<body>
<fieldset class="layui-elem-field" style="margin:30px;padding:30px">
	<legend>添加商品信息</legend>
	<div class="layui-field-box">
			<form class="layui-form-pane layui-form">
										
				<div class="layui-form-item">
					<label class="layui-form-label">用户帐号</label>
					<div class="layui-input-inline">
						<input class="layui-input" name="custCode" type="text" placeholder="请输入用户帐号"
						required lay-verify="required" autocomplete="off">
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label">地址</label>
					<div class="layui-input-inline">
						<input class="layui-input" name="addrCode" type="text" placeholder="请输入地址"
						required lay-verify="required" autocomplete="off">
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label">状态</label>
					<div class="layui-input-inline">
						<select name="status" lay-verify="status">
							<option value="1">已付款</option>
							<option value="0">未付款</option>
						</select>
					</div>
				</div>				
				
				<div class="layui-form-item">
					<div class="layui-input-inline">
						<input type="button" value="确定" class="layui-btn" lay-submit lay-filter="add"  />
						<input type="reset" value="重置" class="layui-btn layui-btn-primary" />
					</div>
				</div>
			</form>
		</div>
		
	</fieldset>

	<script type="text/javascript">
	
	form.render();

		formOn('submit(add)', "/orderinfo/insert.do", "text", function(data) {
			if (data == 1) {
				layer.msg("添加成功", toClose);
			} else {
				layer.msg("添加失败");
			}
		})
	</script>	

</body>
</html>